home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-08-07 | 310 b | 26 lines | [TEXT/????] |
- #! /bin/sh
- #
- # Construct OBJS macro definition
- # usage: putobjs macroname sourcefile ...
-
- # Find out which echo we have, sigh
- case `echo -n` in
- -n) N=; C='\c';;
- *) N=-n; C=;;
- esac
-
- echo
-
- echo $N "$1=$C"
-
- shift
-
- for file
- do
- case $file in
- *.c) echo " \\"; echo $N " `basename $file .c`.o$C";;
- esac
- done
-
- echo
-